<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>

<body>
  <p>新闻详情页面</p>
  <button id="btn1">修改标题</button>
  <script>
    const btn1 = document.getElementById('btn1')
    btn1.addEventListener("click", function () {
      const newInfo = {
        id: 100,
        name: '标题' + Date.now()
      }
      localStorage.setItem('changeInfo', JSON.stringify(newInfo))
    })
  </script>
</body>

</html>